package com.ms.game.lobby.db;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xpec.c4.db.model.basic.BasicModel;

@Entity
@Table(name = "bulletin")
public class BulletinModel extends BasicModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5650487258108195827L;
	
	// 編號
	private int id;
	
	/**
	 * 公告狀態
	 * 0:停用、 1:啟用 
	 */
	private int status;
	
	// 公告類型  0:系統   1:活動
	private int type;
	
	//公告標題
	private String title;
	
	// 公告內容
	private String content;
	
	// 開始時間
	private Date startTime;
	
	// 結束時間
	private Date endTime;
	
	// 建立時間
	private Date createTime;
	
	// 修改時間
	private Date modifyTime;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(columnDefinition = "TEXT")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	
}
